package com.example.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.example.demo.bean.CmsCategory;

@Mapper
public interface CmsCategoryMapper {
	 List<CmsCategoryMapper> queryAll();

	List<CmsCategory> selectAll();
	List <CmsCategory> allCategoryWithParent();

	
	void insert(CmsCategory category);

	void updateByPrimaryKey(CmsCategory category);
	
 CmsCategory selectByPrimaryKey(String pid);
 
	 //按照Id批量删除栏目信息
    int batchDeleteByIds(@Param("ids")String[] ids);

	int selectCountRefPid(String id);

	int deleteByPrimaryKey(String id);
	
    
	

	


}
